package com.zengdada.authority.annotation;

/**
 * @Auther: 12614
 * @Contact: 1261438511@qq.com
 * @Date: 2019-02-12 11:20
 * @Description:
 */

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 实体类字段注解
 */
@Target(ElementType.FIELD)  //注解范围 FIELD 字段
@Retention(RetentionPolicy.RUNTIME) //注解作用域  RUNTIME 运行时
public @interface ModelColumnEnhance {

    @AliasFor("sql")
    String value() default "";

    @AliasFor("value")
    String sql() default "";

    String alias() default "";
}
